/*
 * Copyright (C) 2018  Sun.Hao
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package lodsve.redis.core.properties;

import lodsve.core.properties.relaxedbind.annotations.ConfigurationProperties;

import java.util.Map;

/**
 * redis的配置.
 *
 * @author <a href="mailto:sunhao.java@gmail.com">sunhao(sunhao.java@gmail.com)</a>
 * @date 15/9/8 下午3:49
 */
@ConfigurationProperties(prefix = "lodsve.redis", locations = "${params.root}/framework/redis.properties")
public class RedisProperties {
    private PoolSetting pool;
    private Map<String, ProjectRedisSetting> project;

    public PoolSetting getPool() {
        return pool;
    }

    public void setPool(PoolSetting pool) {
        this.pool = pool;
    }

    public Map<String, ProjectRedisSetting> getProject() {
        return project;
    }

    public void setProject(Map<String, ProjectRedisSetting> project) {
        this.project = project;
    }
}
